package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.HrFavorable;

public interface HrFavorableDAO {
	
    public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public long getFavorableListCount(String weixinID,String userId,String name,String houseId,String businessId) throws Exception;
	
	public List<HrFavorable> getFavorableList(String weixinID, String userId,String name,String houseId,String businessId,int pageIndex,
			int pageSize) throws Exception;


}
